package com.settlement.system.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.time.LocalDate;

/**
 * <p>
 * 懒人秘籍用户信息表
 * </p>
 *
 * @author huangrensen
 * @since 2023-12-29
 */
@Schema
@Data
public class SysLazyToolUserForm {
    @Schema(description = "")
    private Integer id;

    @Schema(description = "登录手机号")
    @NotBlank(message = "登录手机号不能为空")
    private String mobile;

    @Schema(description = "昵称")
    private String nickname;

    @Schema(description = "性别((1:男;2:女))")
    private Boolean gender;

    @Schema(description = "公司名称（如无值，代表是个体用户）")
    private Integer orgName;

    @Schema(description = "是否会员（0：否，1：是）")
    private Integer member;

    @Schema(description = "会员等级（1，2，3，6，99）")
    private Integer memberLevel;

    @Schema(description = "会员到期日")
    private LocalDate memberExpireDate;

    @Schema(description = "体验到期日")
    private LocalDate experienceDate;

    @Schema(description = "用户邮箱")
    // 用于找回密码
    private String email;

    @Schema(description = "登录密码")
    @NotBlank(message = "登录密码不能为空")
    @Size(min = 6, message = "密码长度至少6个字符")
    private String password;

    @Schema(description = "设备ID")
    @NotBlank(message = "设备ID不能为空")
    private String deviceId;
}
